<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html jwcid="@Shell" title="Customer Infomation Manage" stylesheet="asset:main">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Customer Infomation Manage</title>
  <link rel="stylesheet" type="text/css" href="css/xtheme-gray.css"/>
  <script type="text/javascript" src="js/common.js"></script>
</head>

<body jwcid="@Body" onload="searchFieldChange()">

<div align="center" style="color:red;padding-top:3px;">
    <span jwcid="@Delegator" delegate="ognl:beans.delegate.firstError">e</span>
</div>

<span jwcid="@If" condition="ognl:!advancedQuery">
<fieldset>
    <legend>关键字查询</legend>
    <form jwcid="@Form">
    <table>
        <tr>
            <td align="right" width="95" nowrap></td>
            <td nowrap>按<select jwcid="fieldSearch" onchange="searchFieldChange(this)"/>查询</td>
            <td align="right" width="95" nowrap>关键字</td>
            <td nowrap>
                <span id="keyword_span">
                    <input jwcid="keyword"/>
                </span>
                <span id="product_span" style="display:none">
                    <span jwcid="product" />
                </span>
            </td>
            <td nowrap>
                <input type="submit" jwcid="submitSearch" value=" 查 询 " class="buttonStyle"/>
                <input jwcid="advanced" type="button" value="组合查询" class="buttonStyle"/>
            </td>
        </tr>
    </table>
    </form>
</fieldset>
</span>

<span jwcid="@Else">
<fieldset>
    <legend>组合查询</legend>
    <form jwcid="@Form">
    <table>
        <tr>
            <td align="right" width="75" nowrap>客户名称</td>
            <td nowrap><input jwcid="custName"/></td>
            <td align="right" width="75" nowrap>国家</td>
            <td nowrap><input jwcid="country"/></td>
            <td align="right" width="75" nowrap>网址</td>
            <td nowrap><input jwcid="website"/></td>
        </tr>
        <tr>
            <td align="right" width="75" nowrap>客户来源</td>
            <td nowrap><select jwcid="source"/></td>
            <td align="right" width="75" nowrap>客户等级</td>
            <td nowrap><select jwcid="level"/></td>
            <td align="right" width="75" nowrap>产品</td>
            <td nowrap><select jwcid="product1"/></td>
        </tr>
        <tr>
            <td align="right" width="75" nowrap>开始时间</td>
            <td nowrap><input jwcid="fromDate"/></td>
            <td align="right" width="75" nowrap>结束时间</td>
            <td nowrap><input jwcid="toDate"/></td>
            <span jwcid="@If" condition="ognl:@com.crm.model.User@GROUP_SUPER==userSession.userGroup||@com.crm.model.User@GROUP_ADMIN==userSession.userGroup">
                <td align="right" width="75">业务员</td>
                <td><select jwcid="userList"/></td>
            </span>
            <span jwcid="@Else">
                <td colspan="2">&nbsp;</td>
            </span>
        </tr>
        <tr>
            <td colspan="6" align="right" nowrap>
                <input jwcid="advQuery" type="submit" value="查 询" class="buttonStyle"/>
                <input jwcid="simple" type="button" value="关键字查询" class="buttonStyle"/>
            </td>
        </tr>
    </table>
    </form>
</fieldset>
</span>


<fieldset id="first">

    <legend>客户信息列表</legend>
    <br>

    <span jwcid="table">
        <table>
            <tr class="crm_list_title" id="trElement"><span jwcid="@contrib:TableColumns" /></tr>
            <tr jwcid="rows@contrib:TableRows" class="ognl:beans.evenOdd.next">
                <td jwcid="@contrib:TableValues"/>
            </tr>
        </table>
        <table>
            <tr class="crm_list_title">
                <td>
                    <span jwcid="@contrib:TablePages" pagesDisplayed="ognl:15"/> &nbsp;
                    <span jwcid="@Insert" value="ognl:recordCount"/>
                </td>
            </tr>
        </table>
    </span>

    <span jwcid="customerNameColumnValue">
        <a href="" jwcid="customerNameLink">
            <span jwcid="customerName">customerName</span>
        </a>
    </span>

    <span jwcid="deleteColumnValue">
        <a href="" jwcid="deleteLink"onclick="return confirm('确定要删除吗？')" title="删除">
            <b><span jwcid="@If" condition="ognl:page.components.rows.tableRow.user.id==userSession.id">×</span></b></a>
    </span>

</fieldset>

    <form jwcid="@Form">
	    <table>
            <tr>
                <td>&nbsp;</td>
                <td align="right" nowrap>
                    <input jwcid="new" type="submit" class="buttonStyle" value=" 新 增 "/>
                </td>
            </tr>
        </table>
    </form>

</body>
</html>